//
//  LZVideoPresenter.h
//  laziz_Consumer
//
//  Created by xbnzd on 16/11/22.
//  Copyright © 2016年 XBN. All rights reserved.
//


//***********************
//==========视频相关======
//***********************


#import "LZBasePresenter.h"
@class LZVideoDetialModel;

typedef void(^LZVideoDetailSuccessBlock)(LZVideoDetialModel *model);
typedef void(^LZVideoDetailFailedBlock)(NSString *errorRemind);


@interface LZVideoPresenter : LZBasePresenter

#pragma mark -
#pragma mark 城市列表

/**
 获取城市列表.只获取一次

 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (void)getCityListResultSuccess:(void(^)(NSArray *cityArr))successBlock ResultFailed:(void(^)(NSString *remind))failedBlock;


#pragma mark -
#pragma mark 视频列表

/**
 视频列表

 @param dic 筛选参数,可为空
 @param pageNum 当前页数
 @param pageLimit 每页数量
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (void)getVideoListWithParameter:(NSDictionary *)dic PageNum:(int)pageNum PageLimit:(int)pageLimit TimeStamp:(NSTimeInterval)timeStamp ResultSuccess:(void(^)(NSArray *listArr,int totlePage, int totleCount, int currentPage, NSTimeInterval timeStamp))successBlock ResultFailed:(void(^)(NSString *remind))failedBlock;



#pragma mark -
#pragma mark 视频下载

/**
 视频下载

 @param urlStr 下载地址
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (NSURLSessionDownloadTask *)downLoadVideoWithURLStr:(NSString *)urlStr Progress:(void(^)(NSProgress *downLoadProgress))progressBlock ResultSuccess:(void(^)(NSURL *localPathURL))successBlock ResultFailed:(void(^)(NSString *remind))failedBlock;


#pragma mark -
#pragma mark 视频分享次数++
/**
 保存分享操作
 
 @param videoId 视频id
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBolck description#>
 */
+ (void)saveShareCountWithVideoID:(NSString *)videoId ResultSuccess:(void(^)(NSInteger totleCount))successBlock ResultFailed:(void(^)(NSString *remind))failedBlock;



#pragma mark -
#pragma mark 视频播放次数 +1
/**
 视频播放次数 +1
 
 @param videoId 视频id
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (void)videoPlayNumAddWithVideoID:(NSString *)videoId ResultSuccess:(void(^)(NSInteger totleCount))successBlock ResultFailed:(void(^)(NSString *remind))failedBlock;



#pragma mark -
#pragma mark 视频搜索次数+1
/**
 视频搜索次数+1

 @param videoId 视频id
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (void)videoSearchNumAddWithVideoID:(NSString *)videoId ResultSuccess:(void(^)(void))successBlock ResultFailed:(void(^)(NSString *remind))failedBlock;



#pragma mark -
#pragma mark 视频详情
/**
 获取视频详情
 
 @param videoId <#videoId description#>
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (void)getVideoDetailWithVideoID:(NSString *)videoId ResultSuccess:(void(^)(LZVideoDetialModel *model, NSTimeInterval timeStamp))successBlock ResuleFailed:(LZVideoDetailFailedBlock)failedBlock;



#pragma mark -
#pragma mark 视频详情中评论列表

/**
 优惠视频评论统计

 @param videoId 视频id
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (void)getVideoCommentNumWithVideoID:(NSString *)videoId ResultSuccess:(void(^)(id result))successBlock ResultFailed:(void(^)(NSString *remind))failedBlock;



#pragma mark -
#pragma mark 视频详情中评论列表
/**
 视频评论列表
 
 @param promotionId 优惠id
 @param currentPage 当前页数
 @param pageLimit 每页的数量 默认10
 @param successBlock <#successBlock description#>
 @param failedBlock <#failedBlock description#>
 */
+ (void)getVideoCommentListWithPrameter:(NSDictionary*)prameter PromotionID:(NSString *)promotionId CurrentPage:(int)currentPage PageLimit:(int)pageLimit ResultSuccess:(void(^)(NSArray *dataArr,NSNumber *timeStemp))successBlock ResultFailed:(void(^)(NSString *remind))failedBlock;


@end
